<div class="header">
  <back-Btn></back-Btn>
  还物资
</div>
<div class="container finance">
  <div class="list f_sk">
    <div class="list-item icon_more required">
      <div class="item-label">物资类型</div>
      <div class="flow-content" style="padding-right:0">
        <select
          ng-model="param.materialType"
          ng-options="item.value as item.value for item in WZTypeList"
          ng-change="getusers()"
        >
          <option value="">选择物资类型</option>
        </select>
      </div>
    </div>
    <div class="list-item required icon_more" ng-click="choosesigners()">
      <div class="item-label">签收人</div>
      <div class="flow-content">
        {{ param.receipient }}
      </div>
    </div>
    <label class="list-item">
      <p class="item-label">备注</p>
      <p class="flow-content">
        <input type="text" ng-model="param.remark" />
      </p>
    </label>
    <div class="list-item icon_more" ng-click="choosepeople()">
      <div class="item-label">审批人员</div>
      <div class="flow-content">{{ param.aduitUserNames }}</div>
    </div>
    <!--  归还明细-->
    <div class="list-item icon_more required" ng-click="choosewz()">
      <div class="item-label">归还明细</div>
      <div class="flow-content"></div>
    </div>
    <div class="list table-list">
      <div class="info-title" ng-show="param.details.length">归还明细</div>
      <div
        class="table-item"
        ng-repeat="item in param.details"
        ng-class="{mt0:$first}"
      >
        <div class="delete_icon icon_del" ng-click="deletedItem($index)"></div>
        <div
          class="content"
          ng-class="{cur:$index==index}"
          ng-click="resetlist()"
          ng-swipe-left="swipe($index)"
          ng-swipe-right="swipe(-1)"
        >
          <div class="list-item">
            <div class="item-label">物资名称</div>
            <div class="flow-content">{{ item.mname }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">规格型号</div>
            <div class="flow-content">{{item.specifications}}</div>
          </div>
          <div class="list-item">
            <div class="item-label">需归还</div>
            <div class="flow-content">
              {{ item.total - item.userId - item.bdI }}
            </div>
          </div>
          <div class="list-item required">
            <div class="item-label">归还数量</div>
            <div class="flow-content">
              <input
                type="text"
                ng-model="item.returnNum"
                placeholder="请输入"
                tel-directive
              />
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">备注</div>
            <div class="flow-content">
              <input type="text" ng-model="item.remarks" />
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 自定义字段 -->
    <div
      user-defined
      param="param"
      field-map="param.fieldMap"
      validation="validation"
      uid="param.uid"
      processid="param.processInstanceId"
    ></div>
    <!-- 附件 -->
    <div class="file-upload" file-upload file-data="param.attachment">
    </div>
     <!-- 审查日志 -->
     <div log-list status="processStatus" taskid="process_id"></div>
  </div>
  <!-- 删除流程 -->
  <div
    delete-flow
    uid="param.uid"
    id="{{ param.processInstanceId }}"
    submit="submit"
    validate="validate"
  ></div>
</div>
